package lesson4;

public class ArrayExamples2 {

		public static void main(String[] args) {
			
			int[] a = {2,3,4};
			int[] b = {2,3,4,5};
			//n = 3;
			
			boolean equal = true;
			
			if(a.length != b.length)
				equal = false;
			else
			{
				for(int i = 0; i<a.length;i++ )
				{
					if(a[i] != b[i])
					{
						equal = false;
						break;
					}
				}
			}
			System.out.println(equal ? "Equal! " : "Not equal!");
			
			
		}
}
